package com.game.fg.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

@Component
public class RedisTest {

    @Autowired
    private StringRedisTemplate stringRedisTemplate;

    public void test(){
        String key="TEST";
        stringRedisTemplate.opsForValue().get(key);

    }
}
